package cn.detu.uu;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

import java.text.DateFormat;
public class Test4 {
    public static void main(String[] args) throws ParseException {
        String str = new Scanner(System.in).nextLine();
        SimpleDateFormat a = new SimpleDateFormat("yyyy-MM-dd");
        Date d = a.parse(str);
        long end = d.getTime();
        long now = System.currentTimeMillis();
        System.out.println((now-end)/1000/60/60/24);

    }
}
